package com.vastio.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.RestController;

/**
 * 配置类，代替spring.xml配置文件
 *
 * @author hjwStart
 * @time 2022-11-23 14:48
 * @version: 1.0
 */
@Configuration
@ComponentScan(value = "com.vastio",
        excludeFilters = {
                @ComponentScan.Filter(value = Controller.class),
                @ComponentScan.Filter(value = RestController.class),
                @ComponentScan.Filter(value = ControllerAdvice.class)
        })
// 扫描com.vastio下的所有类，标注了@Controller、@RestController、@ControllerAdvice注解的
// 类不会被添加到IOC容器中
public class SpringConfig {
}
